<template>
    <div></div>
</template>
<script setup lang="ts">
import { onBeforeMount, h } from 'vue';
import { useRouter, useRoute } from 'vue-router';

const router = useRouter()
const route = useRoute()

onBeforeMount(() => {
    const { params, query } = route
    const { path } = params
    const nowPath = path.toString().replace(/,/g,'/')
    router.replace({ path: '/' + nowPath, query })
})

</script>